package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.domain.UserInfo;

public interface IUserInfoService {
    UserInfo get(String id);

   boolean checkPhone(String phone);
//自己写的发送验证码。
   // JsonResult sendVerifyCode(String phone);
    void sendVerifyCode(String phone, String ssmUrl, String ssmLogo, String ssmAppKey);

    void regist(String phone, String nickname, String password, String rpassword, String verifyCode);



    String setToken(String userStr);

    UserInfo login(String username, String password);

//    UserInfo IUserInfoServicegetUserByToken(String token);

    UserInfo getUserByToken(String token);

    //   UserInfo findByToken(String token);
}
